﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 原型模式深复制
{
    /// <summary>
    /// 工作经历类
    /// </summary>
    class WorkExperience : ICloneable  //实现ICloneable接口
    {
        string workData;

        public string WorkData
        {
            get { return workData; }
            set { workData = value; }
        }
        string company;

        public string Company
        {
            get { return company; }
            set { company = value; }
        }
        //增加克隆方法
        public object Clone()
        {
            return this.MemberwiseClone();
        }
    }
}
